package model;

import java.sql.Timestamp;

/**
 *  SearchPhotoModel saves the search fields data.
 * @author Tomer Elkayam
 */

public class SearchPhotoModel 
{
	
	/** The time stamp. */
	private String timeStamp;
	
	/** The location. */
	private int location;
	
	/** The link to file. */
	private String linkToFile;

	/**
	 * Instantiates a new search photo model.
	 */
	public SearchPhotoModel()
	{
		super();
	}
	
	/**
	 * Instantiates a new search photo model.
	 *
	 * @param timeStamp the time stamp
	 * @param location the location
	 * @param linkToFile the link to file
	 */
	public SearchPhotoModel(String timeStamp, int location, String linkToFile) 
	{
		this();
		this.timeStamp = timeStamp;
		this.location = location;
		this.linkToFile = linkToFile;
	}
	
	/**
	 * Gets the time stamp.
	 *
	 * @return  a formatted string representation of MySQL TIMESTAMP
	 */
	public String getTimeStamp() {
		return timeStamp;
	}

	/**
	 * Sets the time stamp.
	 *
	 * @param timeStamp the new time stamp
	 */
	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}
	
	
	/**
	 * Gets the location.
	 *
	 * @return the location
	 */
	public int getLocation() {
		return location;
	}
	
	/**
	 * Sets the location.
	 *
	 * @param location the new location
	 */
	public void setLocation(int location) {
		this.location = location;
	}

	/**
	 * Gets the link to file.
	 *
	 * @return the link to file
	 */
	public String getLinkToFile() {
		return linkToFile;
	}

	/**
	 * Sets the link to file.
	 *
	 * @param linkToFile the new link to file
	 */
	public void setLinkToFile(String linkToFile) {
		this.linkToFile = linkToFile;
	}
	
	
}
